//
//  GYNewGoodsCollectionViewCell.m
//  GoodLuck
//
//  Created by apple on 2018/5/2.
//  Copyright © 2018年 yunjiazhineng. All rights reserved.
//

#import "GYNewGoodsCollectionViewCell.h"

@interface GYNewGoodsCollectionViewCell ()
@property (weak, nonatomic) IBOutlet UIImageView *NGoodsImageView;
@property (weak, nonatomic) IBOutlet UILabel *NGoodsTitleLable;
@property (weak, nonatomic) IBOutlet NSLayoutConstraint *goodsImageViewHeightCons;

@end

@implementation GYNewGoodsCollectionViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    self.goodsImageViewHeightCons.constant = [GYAutoScale heightScale:220 originalSize:iphone6_H];
}

- (void)setModel:(GYNewGoods *)model {
    _model = model;
    
    [self.NGoodsImageView sd_setImageWithURL:[NSURL URLWithString:model.image] placeholderImage:[UIImage imageNamed:@"4"]];
    self.NGoodsTitleLable.text = model.title;
}
@end
